﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JSOCTNet.IBIZ
{
    /// <summary>
    /// 发送文件接口
    /// </summary>
    public interface ISendFile
    {
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="config"></param>
        /// <returns></returns>
        bool Init(string config);

        /// <summary>
        /// 发送文件
        /// </summary>
        /// <param name="xmppUserName">xmpp子系统账户</param>
        /// <param name="objJsonString">要传输的文件内容</param>
        /// <returns></returns>
        int Send(string xmppUserName, string objJsonString);

        /// <summary>
        /// 获取阿里云oss存储路径
        /// </summary>
        /// <param name="xmppUserName">xmpp子系统账户</param>
        /// <param name="inTime">入场时间</param>
        /// <param name="recordID">记录NISSPID</param>
        /// <param name="fileName">文件名称</param>
        /// <returns></returns>
        string GetPictureUri(string xmppUserName, DateTime inTime, string recordID, string fileName);
    }
}
